<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@page import="com.boxin.ims.modules.wechat.score.entity.ExchangeRecord"%>
<%@page import="com.boxin.ims.modules.momarketing.common.QRCodeUtils"%>

<!DOCTYPE html>
<html lang="zh-CN" >
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
	<meta name="format-detection" content="telephone=no" />
	<title></title>
	<%-- <link rel="stylesheet" type="text/css" href="${ctxStatic}/member/themes/fashion/css/user.css" /> --%>
	<script src="${ctxStatic}/member/themes/default/jquery-1.9.1.min.js" type="text/javascript"></script>
	<style type="text/css">
		.prizeImg{width:400px;margin:0 auto; display: block;position: relative;z-index:99}
		#mobile{font-size: 12px;color: #333;font-family: "宋体";zoom: 1;margin: 0em;font: -webkit-small-control;color: initial;letter-spacing: normal;word-spacing: normal;text-transform: none;text-indent: 0px;text-shadow: none;display: inline-block;text-align: start;-webkit-rtl-ordering: logical;-webkit-user-select: text;cursor: auto;-webkit-appearance: textfield;line-height: 20px;border-radius: 3px;}
		.mobileButton{height: 35px;line-height: 35px;font-size: 14px;color: #fff;background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f90), to(#f60));border: 1px solid #f60;text-shadow: 0px -1px 1px #666;font-family: "宋体";}
	</style>
	
	<link id="link2" rel="stylesheet" href="${ctxStatic}/member/themes/expand/css/style.css" />
	<link id="link1" rel="stylesheet" href="${ctxStatic}/member/themes/expand/css/public.css" />
	<link rel="stylesheet" type="text/css" href="${ctxStatic}/member/themes/expand/css/user.css">
	<style type="text/css">
		.table{border-bottom: 1px #eee solid;}
		.table-cell {border-bottom: 0px #eee solid;}
	</style>
	
	
	<script type="text/javascript">
		function fnSaveMobile(memberId){
			var mobile = $("#mobile").val();
			if(mobile == null || mobile ==''){
				alert('请输入手机号。');
				return false;
			}else{
				if(/^1[3,4,5,8]\d{9}$/g.test(mobile)||(/^15[8,9]\d{8}$/g.test(mobile))){
					$.ajax({
						 type: 'POST',
						 url: "${ctxFront}/member/saveMobile",
						 dataType: "json",
						 cache:true,
						 async:false,
						 data: {memberId: memberId, mobile:mobile},
					　　　 success: function (data) {
							if(data=='success'){
								alert("手机号保存成功");
								$('#mobileContent').hide()
							}
							if(data=='error'){
								alert("手机号保存失败");
							}
						 }
					});
				}else{
					alert('手机号输入不正确。');
					return false;
				}
			}
		}
	</script>
</head>
<body>
<div class="body">
	<div id="city">
    	<p class="backp">兑换信息</p>
	</div>
	<div class="backg" style="text-align:center;padding-top:20px;">
		<h5>${message }</h5>
   		<%-- <c:if test="${recorder.status eq '0'}">
   					<%
						ExchangeRecord recorder = (ExchangeRecord) request.getAttribute("recorder");
					    if(recorder != null){
							Long qrcodeId = recorder.getQrCode().getId();
					%>
					<img alt="" src="<%=QRCodeUtils.getQRCodePNGURL(qrcodeId)%>" class="prizeImg" style="width:100%;margin-top:20px;" >
					<%} %>
   		</c:if> --%>
					
		<%-- <div align="center">
			请您在${scoreExchange.user.name }兑换${recorder.name}<br>进入【个人中心】 点击  【我的物品】进行查看 <br/>
		</div> --%>
		<div align="center">
			查看
			<c:if test="${scoreExchange.iskou eq 1}">
				<a href="${ctxFront  }/expand/myGoods?uid=2&wechatId=${member.wechatId}">
					【我的物品】
				</a>
            </c:if>
			<c:if test="${scoreExchange.iskou ne 1}">
				<a href="${ctxFront  }/service/huisimeng/mycouponlog?uid=2">
					【我的优惠券】
				</a>
            </c:if>
				
		</div>
			
		<%-- <div align="center" id="mobileContent">
			<c:if test="${member.mobile eq null || member.mobile eq ''}">
				<input  placeholder="请输入手机号" name="mobile" id="mobile" type="text" maxlength="15" class="required digits" style="margin-top:10px;width:75%;border:1px solid;height:30px;"/>
				<br>
				<input type="button" onclick="fnSaveMobile('${member.id}');" class="o_btn_back ts1 mobileButton" value="保存手机号" style="margin-top:10px;width:75%;margin-left: -8px;" />
			</c:if>
		</div> --%>
	</div>
			
     <footer class="footer" style="position: fixed;bottom: 0px;"  onclick="location='http://www.hdzhx.com/me/microengine/index.html#page1'">
		<section class="w-goods" style="  padding-top: 10px;">
			<img src="${ctxStatic}/member/themes/expand/img/me.jpg" width="100px">		
		</section>
	</footer>
</div>
</body>
</html>
